Release 10.1A: OpenEdge Development:
ADM Reference
updateState
Procedure that receives state-message events related to record updates.
Location: panel.p Parameters:INPUT pcState AS CHARACTERUpdate state can be Update or UpdateComplete.
Notes:
- For Update, a Navigation Panel set its PanelState property to disable–all, to prevent navigation during an update operation. A Save or Update panel sets its state to action–chosen, meaning that a button has been pressed that puts the panel in the middle of an Update or Add or Copy operation that must be explicitly Saved to be completed.
- For UpdateComplete, a Navigation Panel restores the prior PanelState (having been disabled when the update began). A Save or Update panel sets its state to add–only if no rows are available in the current result set, to disable–all if no rows are available and there is also no available parent row for this result set (meaning that not even an Add could be done), or to initial if the RecordState is RecordAvailable, meaning that all operations are allowed (Update/Add/Copy/Delete).
- In addition, for an Update panel, which explicitly enables fields when an Update begins and disables them when the operation is Saved, the updateMode event is published with a value of UpdateEnd, to tell visualizations to disable their fields.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |